//
//  WBStatusPicModel.swift
//  WeiboTen
//
//  Created by ItHeiMa on 2017/7/10.
//  Copyright © 2017年 itHeima. All rights reserved.
//

import UIKit

class WBStatusPicModel: NSObject {
    /// 配图的url字符串
    var thumbnail_pic: String? {
        didSet {
            middle_pic = thumbnail_pic?.replacingOccurrences(of: "/thumbnail/", with: "/wap360/")
            big_pic = thumbnail_pic?.replacingOccurrences(of: "/thumbnail/", with: "/bmiddle/")
        }
    }
    
    var big_pic: String?
    
    /// 清晰小图
    var middle_pic: String?
    
    /// 在swift中description是一个计算属性，类似oc中的只读属性
    override var description: String {
        //调用方法调式时，如果属性中有其它模型，则该模型也要重写description
        //return dictionaryWithValues(forKeys: ["thumbnail_pic"]).description
        return yy_modelDescription()
    }
}
